package com.liangwj.springbootshiro.configuration;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
 * <b>Description:</b> SpringBoot 2.0 ,Spring 5,0 WebMvcConfigurer 代替WebMvcConfiguereradapter <br/>
 * 1.要么implement WebMvcConfigurer <br/>
 * 2.要么 extends WebMvcConfigurationSupport
 * @author Lingwenjun
 * @date 2019/1/2-16:28
 * @version 1.0
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {//建议
//public class WebMvcConfig extends WebMvcConfigurationSupport {

    /** 解决跨域问题 **/
//    public void addCorsMappings(CorsRegistry registry) ;
    /** 添加拦截器 **/
//    void addInterceptors(InterceptorRegistry registry);
    /** 这里配置视图解析器 **/
//    void configureViewResolvers(ViewResolverRegistry registry);
    /** 配置内容裁决的一些选项 **/
//    void configureContentNegotiation(ContentNegotiationConfigurer configurer);
    /** 视图跳转控制器 **/
//    void addViewControllers(ViewControllerRegistry registry);
    /** 静态资源处理 **/
//    void addResourceHandlers(ResourceHandlerRegistry registry);
    /** 默认静态资源处理器 **/
//    void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer);


    @Override
    public void addInterceptors(InterceptorRegistry registry) {
    }
}
